import React from 'react';
class Button extends React.Component {
  render() {
    console.log(this.props)
    /* 
      children  -->  undefined
      children  -->  String
      children  -->  虚拟DOM对象
      children  -->  字符串文本

    */
    let { children, html, onClick } = this.props; // 类似于 vue的 slot
    return <button className='' onClick={onClick}>
      {children}
      {html}
    </button>;
  }
}
export default Button
